from .base import *

__all__ = ['NewsItem']


# 新闻
class NewsItem(BaseItem):
    title = scrapy.Field()  # 标题
    newsUrl = scrapy.Field()  # 详情URL
    content = scrapy.Field()  # 内容
    pubDate = scrapy.Field()  # 出版时间
    newsPath = scrapy.Field()  # 新闻路径
    siteUrl = scrapy.Field()  # 站点域名url
    listUrl = scrapy.Field()  # 二级界面的url
    siteName = scrapy.Field()  # 站点名称,中文
    # source = scrapy.Field()  # 来源
    comChiNameList = scrapy.Field()  # 匹配的主提列表
    # newsId = scrapy.Field()  # 新闻ID
    # theme = scrapy.Field()  # 新闻转发
    # msg_tag = scrapy.Field()  # 信息标签
    dataId = scrapy.Field()
    _id = scrapy.Field()

    def __init__(self):
        super().__init__()
        # self['type'] = 'news'
